//package com.juneng.interceptor;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @ClassName: InterceptorConfigurer
// * @Description: 拦截器类
// * @author: zds
// * @date: 2019/5/7  10:58
// */
//@Configuration
//public class InterceptorConfigurer implements WebMvcConfigurer {
//
//    //登录拦截器不拦截的接口
//    private static final String[] EXCLUDE_API_PATH_PATTERNS =
//            {"/common/**","/swagger-resources/**","/webjars/**","/v2/**","/doc.html/**",
//                    "/bUserAccount/captcha","/bUserAccount/login","/ysVideo/postVideoList"
//            };
//
//    @Bean
//    public LoginInterceptor getLoginInterceptor (){
//        return new LoginInterceptor();
//    }
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(getLoginInterceptor()).excludePathPatterns(EXCLUDE_API_PATH_PATTERNS);
//    }
//}
